summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/furthsettins
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-10-13 22:01:58 +0100
committerGitHub <noreply@github.com>2023-10-13 22:01:58 +0100
commit9ddedf444811bac0dd2d8ce6e21b64c8dee9de76 (patch)
tree37a73f2fa3be191ff3b493246dc9b1fc6b7c5f5c /src/pages/[locale]/furthsettins
parent6a0bd0ab3a0960cd1436190285ebe24bf8ef1f28 (diff)
parent429aef251345cf54af2feed3f8ecb608db7fd7e7 (diff)
Merge pull request #13 from Sycamost/dev
Dev
Diffstat (limited to 'src/pages/[locale]/furthsettins')
-rw-r--r--src/pages/[locale]/furthsettins/index.astro9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro
index e1f4928..80698bd 100644
--- a/src/pages/[locale]/furthsettins/index.astro
+++ b/src/pages/[locale]/furthsettins/index.astro
@@ -1,4 +1,5 @@
---
+import { Image } from 'astro:assets';
import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
@@ -6,8 +7,8 @@ import tFurthsettins from '$i18n/translations/pages/furthsettins';
import tSite from '$i18n/translations/site';
import type Locale from '$types/Locale';
import relativePath from '$lib/relativePath';
-import lallansImg from '$images/furthsettins/lallans.jpg';
-import scotsounImg from '$images/furthsettins/scotsoun.jpg';
+import lallansImg from '$images/furthsettins/lallans-192w.jpg';
+import scotsounImg from '$images/furthsettins/scotsoun-192w.jpg';
export async function getStaticPaths() {
return localeStaticPaths;
@@ -24,13 +25,13 @@ const t = translate(locale);
<ul class="link-gallery link-gallery--furthsettins">
<li>
<a href={relativePath(Astro.url.pathname, 'lallans')} class="link link-gallery__container">
- <img src={lallansImg.src} alt="" />
+ <Image src={lallansImg} alt="" />
<p class="link-gallery__title">{t(tSite, { key: 'lallans' })}</p>
</a>
</li>
<li>
<a href={relativePath(Astro.url.pathname, 'scotsoun')} class="link link-gallery__container">
- <img src={scotsounImg.src} alt="" />
+ <Image src={scotsounImg} alt="" />
<p class="link-gallery__title">{t(tSite, { key: 'scotsoun' })}</p>
</a>
</li>